package lab02.test37;

public class Graduate extends Student{

    Graduate(int Math, int Chinese, int English){
        this.Math = Math;
        this.Chinese = Chinese;
        this.English = English;
    }

    public void pass(){

        int ave = (Math + Chinese + English)/3;
        if (ave > 80){
            System.out.println("能拿学位");
        }
        else {
            System.out.println("不能拿学位");
        }
    }
}
